TxT: Real-Time Transaction Encapsulation for Ethereum Smart Contracts
نویسندگان
چکیده
Ethereum is a permissionless blockchain ecosystem that supports execution of smart contracts, the key enablers decentralized finance (DeFi) and non-fungible tokens (NFT). However, expressiveness contracts double-edged sword: while it enables programmability, also introduces security vulnerabilities, i.e., exploitable discrepancies between expected actual behaviors contract code. To address these increase vulnerability coverage, we propose new testing approach called transaction encapsulation. The core idea lies in local transactions on fully-synchronized yet isolated node, which creates preview outcomes sequences current state blockchain. This poses critical technical challenge — well-known time-of-check/time-of-use (TOCTOU) problem, assurance final will exhibit same paths as encapsulated test transactions. In this work, determine exact conditions for guaranteed path replicability tested demonstrate encapsulation, implement tool, TxT, reveals (either benign or malicious) ensure correctness testing, TxT deterministically verifies whether given sequence ensues an identical We analyze over 1.3 billion 96.5% them can be verified by TxT. further show successfully suspicious associated with 31 out 37 vulnerabilities (83.8% coverage) weakness classification (SWC) registry. comparison, coverage all existing defense approaches combined only reaches 40.5%.
منابع مشابه
Tool Demonstration: FSolidM for Designing Secure Ethereum Smart Contracts
Blockchain-based distributed computing platforms enable the trusted execution of computation—defined in the form of smart contracts—without trusted agents. Smart contracts are envisioned to have a variety of applications, ranging from financial to IoT asset tracking. Unfortunately, the development of smart contracts has proven to be extremely error prone. In practice, contracts are riddled with...
متن کاملA survey of attacks on Ethereum smart contracts
Smart contracts are computer programs that can be correctly executed by a network of mutually distrusting nodes, without the need of an external trusted authority. Since smart contracts handle and transfer assets of considerable value, besides their correct execution it is also crucial that their implementation is secure against attacks which aim at stealing or tampering the assets. We study th...
متن کاملA Survey of Attacks on Ethereum Smart Contracts (SoK)
Smart contracts are computer programs that can be correctly executed by a network of mutually distrusting nodes, without the need of an external trusted authority. Since smart contracts handle and transfer assets of considerable value, besides their correct execution it is also crucial that their implementation is secure against attacks which aim at stealing or tampering the assets. We study th...
متن کاملFindel: Secure Derivative Contracts for Ethereum
Blockchain-based smart contracts are considered a promising technology for handling financial agreements securely. In order to realize this vision, we need a formal language to unambiguously describe contract clauses. We introduce Findel – a purely declarative financial domain-specific language (DSL) well suited for implementation in blockchain networks. We implement an Ethereum smart contract ...
متن کاملA Semantic Framework for the Security Analysis of Ethereum smart contracts
Smart contracts are programs running on cryptocurrency (e.g., Ethereum) blockchains, whose popularity stem from the possibility to perform financial transactions, such as payments and auctions, in a distributed environment without need for any trusted third party. Given their financial nature, bugs or vulnerabilities in these programs may lead to catastrophic consequences, as witnessed by recen...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
ژورنال
عنوان ژورنال: IEEE Transactions on Information Forensics and Security
سال: 2023
ISSN: ['1556-6013', '1556-6021']
DOI: https://doi.org/10.1109/tifs.2023.3234895